import { axios } from '@/utils/request'

/**
 * 分页查询
 */
export function fetchList (params) {
  return axios({
    url: '/task/page',
    method: 'get',
    params: params
  })
}

/**
 * 发布
 */
export function complete (taskId) {
  return axios({
    url: '/task/complete/'+taskId,
    method: 'post',
  })
}